import Cookies from 'js-cookie'
// 处理token
const TokenKey = 'hrsaas'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(value) {
  return Cookies.set(TokenKey, value)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

// 处理时间
const TimeKey = 'token_time'

export function getTimeStamp() {
  return Cookies.get(TimeKey)
}

export function setTimeStamp(value) {
  return Cookies.set(TimeKey, value)
}

export function removeTimeStamp() {
  return Cookies.remove(TimeKey)
}
